home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc™ Source Code / Binding / Binding.r next >
Encoding:
Text File  |  1996-08-28  |  5.4 KB  |  243 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Binding.r
  3.  
  4.     Contains:    Alert dialog resources for Binding
  5.  
  6.     Owned by:    Reginald Adkins
  7.  
  8.     Copyright:    © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <5>     6/27/96    jpa        1361886: Added NoPart error message table &
  13.                                     alerts. Moved some rsrcs to new NoPart.res.
  14.          <4>     6/27/96    RA        1361408: Added null viewer part handler
  15.                                     viewer nmap
  16.          <3>     3/15/96    RA        #1302213: New Editor Substituion dialog was
  17.                                     misleading.
  18.          <2>      1/8/96    CG        1299331 1.0.1: Replaced DITL with STR for
  19.                                     change to notification manager.
  20.  
  21.     To Do:
  22.         
  23. */
  24.  
  25.  
  26. #define SystemSevenOrBetter 1            // we want the extended types
  27. #define    SystemSevenOrLater    1            // Types.r uses this variable
  28.  
  29. #ifndef __TYPES_R__
  30. #include "Types.r"
  31. #endif
  32.  
  33. #ifndef __ODTYPES_R__
  34. #include "ODTypes.r"
  35. #endif
  36.  
  37. #ifndef SOM_Module_OpenDoc_Errors_defined
  38. #include "ErrorDef.r"
  39. #endif
  40.  
  41. #ifndef _CONSTDEF_
  42. #include "ConstDef.h"
  43. #endif
  44.  
  45. #ifndef _BNDNGDEF_
  46. #include "BndngDef.h"
  47. #endif
  48.  
  49.  
  50. //==============================================================================
  51. // Editor Substitution Warning
  52. //==============================================================================
  53.  
  54.  
  55. resource 'STR ' (kBindingWarning, purgeable)
  56. {
  57.     "One of the editors that was used to crea"
  58.     "te some of the “^0” parts in this docume"
  59.     "nt is missing.  “^1” has been substitute"
  60.     "d."
  61. };
  62.  
  63.  
  64. //==============================================================================
  65. // Fictitious Null Viewer 'nmap'
  66. //==============================================================================
  67.  
  68.  
  69. resource kODNameMappings (kNullViewerPartHandlerNMAP) 
  70. {
  71.     kODViewer,
  72.     {    /* array Types: 1 elements */
  73.         /* [1] */
  74.         kNullViewerPartHandler,
  75.         kODIsAnISOString
  76.         {
  77.             kODViewer
  78.         }
  79.     }
  80. };
  81.  
  82.  
  83. //==============================================================================
  84. // NoPart Resources
  85. //==============================================================================
  86.  
  87.  
  88. include "NoPart.res" not 'ckid';
  89. // Icon suite kNoPartIconResID
  90. // Icon suite kNoPartButtonIconResID
  91. // PICT          kNoPartThumbnail
  92.  
  93.  
  94. resource 'DLOG' (kNoPartDlogID, purgeable) {
  95.     {80, 80, 258, 462},
  96.     dBoxProc,
  97.     invisible,
  98.     noGoAway,
  99.     0,//refcon
  100.     kNoPartDlogID,
  101.     "",
  102.     alertPositionParentWindowScreen
  103. };
  104.  
  105. resource 'DITL' (kNoPartDlogID, purgeable) {
  106.     {
  107.         /* [1] */
  108.         {140, 279, 160, 353},
  109.         Button {
  110.             enabled,
  111.             "OK"
  112.         },
  113.         /* [2] */
  114.         {140, 175, 160, 259},
  115.         Button {
  116.             enabled,
  117.             "Translate…"
  118.         },
  119.         /* [3] */
  120.         {10, 70, 135, 362},
  121.         StaticText {
  122.             disabled,
  123.             "This gray box represents a part that could not be loaded.\n^0^2"
  124.         },
  125.         /* [4] */
  126.         {141, 70, 159, 127},
  127.         StaticText {
  128.             disabled,
  129.             "^3"
  130.         },
  131.         /* [5] */
  132.         {10, 20, 42, 52},
  133.         Icon {
  134.             disabled,
  135.             2
  136.         }
  137.     }
  138. };
  139.  
  140.  
  141. resource 'DLOG' (kNoPartRootDlogID, purgeable) {
  142.     {80, 80, 258, 462},
  143.     dBoxProc,
  144.     invisible,
  145.     noGoAway,
  146.     0,//refcon
  147.     kNoPartRootDlogID,
  148.     "",
  149.     alertPositionParentWindowScreen
  150. };
  151.  
  152. resource 'DITL' (kNoPartRootDlogID, purgeable) {
  153.     {
  154.         /* [1] */
  155.         {140, 279, 160, 353},
  156.         Button {
  157.             enabled,
  158.             "OK"
  159.         },
  160.         /* [2] */
  161.         {140, 175, 160, 259},
  162.         Button {
  163.             enabled,
  164.             "Translate…"
  165.         },
  166.         /* [3] */
  167.         {10, 70, 135, 362},
  168.         StaticText {
  169.             disabled,
  170.             "The document “^1” could not be opened. ^0^2"
  171.         },
  172.         /* [4] */
  173.         {141, 70, 159, 127},
  174.         StaticText {
  175.             disabled,
  176.             "^3"
  177.         },
  178.         /* [5] */
  179.         {10, 20, 42, 52},
  180.         Icon {
  181.             disabled,
  182.             0
  183.         }
  184.     }
  185. };
  186.  
  187.  
  188. //==============================================================================
  189. // NoPart Error Message Table
  190. //==============================================================================
  191.  
  192.  
  193. type 'errs' {
  194.     wide array {                                // Error list
  195.         LONGINT         whichList = 0,
  196.                     minErr = -2147483648;        // Low error number; 0 specifies STR#
  197.         LONGINT        maxErr = 2147483647;         // High error number
  198.         LONGINT;                                // Index in STR# of string
  199.     };
  200. };
  201.  
  202.  
  203. resource 'errs' (kNoPartMessageTableID,purgeable) {
  204.     {    whichList, 0, kNoPartMessageTableID;
  205.     
  206.         -1,                    -1,                    2;            // -1 denotes can't-find-editor (see NoPart.cpp)
  207.         -2,                    -2,                    3;            // -2 is same but if we know the editor name
  208.         -108,                -108,                4;
  209.         kODErrOutOfMemory,    kODErrOutOfMemory,    4;
  210.         -2802,                -2802,                5;            // fragSymbolNotFound
  211.         -2804,                -2804,                6;            // fragLibNotFound
  212.         -2807,                -2807,                5;            // fragHadUnresolveds
  213.         -2810,                -2809,                4;            // fragNoAddrSpace..fragNoMem
  214.         -2823,                -2823,                7;            // fragArchError
  215.         
  216.         -2899,                -2800,                8;            // all CFM errors
  217.         
  218. //        minErr,                maxErr,                1;            // all errors
  219.     };
  220. };
  221.  
  222.  
  223. resource 'STR#' (kNoPartMessageTableID,purgeable) {
  224.     {
  225.         /*1*/"Could not load this “^1” part: ^2";                // Generic; loaded directly
  226.         /*2*/"No editor could be found to edit this part’s content.";
  227.         /*3*/"The editor “^1” is not installed, and no installed editor can edit this part’s content.";
  228.         /*4*/"There was not enough memory available to load this part. Try closing other applications or documents.";
  229.         /*5*/"Could not load the editor “^1” due to a missing symbol “^2”. Try re-installing the editor.";
  230.         /*6*/"Could not load the editor “^1” due to a missing library “^2”. Try re-installing the editor.";
  231.         /*7*/"The editor “^1” cannot run on this type of CPU. Try re-installing the editor.";
  232.         /*8*/"Could not load the editor “^1” due to a shared-library error of type ^3. Try re-installing it.";
  233.     };
  234. };
  235.  
  236.  
  237. resource 'STR#' (kNoPartTranslationStrID,purgeable) {
  238.     {
  239.         "\nNo translations are available for this data.",
  240.         "The data can, however, be translated into a format readable by an installed editor."
  241.     };
  242. };
  243.